package glaf;

import java.awt.Component;

import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;

import utils.GColor;

@SuppressWarnings("serial")
public class GScrollPane extends JScrollPane {

	public GScrollPane(Component view) {
		super(view);
		getVerticalScrollBar().setUI(new GScrollbarUI());
		setBackground(GColor.BLUE);
		setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		getViewport().setBackground(GColor.WHITE);
	}

}